package org.hzz.coupon.infrastructure.dao.mapper.code;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.hzz.coupon.infrastructure.dao.model.code.ExchangeCode;
import org.hzz.coupon.infrastructure.dao.model.code.ExchangeCodeExample;

import java.util.List;
@Mapper
public interface ExchangeCodeMapper {
    long countByExample(ExchangeCodeExample example);

    int deleteByExample(ExchangeCodeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ExchangeCode row);

    int insertSelective(ExchangeCode row);

    List<ExchangeCode> selectByExample(ExchangeCodeExample example);

    ExchangeCode selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") ExchangeCode row, @Param("example") ExchangeCodeExample example);

    int updateByExample(@Param("row") ExchangeCode row, @Param("example") ExchangeCodeExample example);

    int updateByPrimaryKeySelective(ExchangeCode row);

    int updateByPrimaryKey(ExchangeCode row);
}